package cn.cmeizu.spring6.iocxml.ditest;

import java.util.List;

/**
 * @author cmeizu
 * @date 2023/2/8 23:44
 */
public class Dept {
  public List<Emp> getEmpList() {
    return empList;
  }

  public void setEmpList(List<Emp> empList) {
    this.empList = empList;
  }

  /**
   * 一个部门有很多员工
   */
  private List<Emp> empList;

  public String getDname() {
    return dname;
  }

  public void setDname(String dname) {
    this.dname = dname;
  }

  private String dname;

  public void info() {
    System.out.println("部门名称:" + dname);
    for (Emp emp : empList) {
      System.out.println(emp);
    }
  }
}
